package xiangmu1;
//继承
public class Pcar  extends Car{
    private String CarName;//客车名
    private double CarPrice;//客车日租
    private static double zMonny;//客车余额

    //构造无参方法
    public Pcar(){}
    public Pcar(String carName, double carPrice) {
        CarName = carName;
        CarPrice = carPrice;
    }
//构造set和get方法

    public String getCarName() {
        return CarName;
    }

    public void setCarName(String carName) {
        CarName = carName;
    }

    public double getCarPrice() {
        return CarPrice;
    }

    public void setCarPrice(double carPrice) {
        CarPrice = carPrice;
    }
    public static double getzMonny() {
        return zMonny;
    }

    public static void setzMonny(double zMonny) {
        Pcar.zMonny = zMonny;
    }
}


